package com.example.springboot.config.amqp.rabbitmq.fanoutconsumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/5/14 14:58
 */
@RabbitListener(queues = "fanout.A")
@Component
public class FanoutRabbitmqConsumer1 {
    @RabbitHandler
    public void process(Map message) {
        System.out.println("fanout型消费者1消费了" + message);
    }
}
